/**
 * Proyecto X Tecnologia de programacion  2do cuatrimestre de 2012
 * @author
 * German Rickert LU: 93284
 * Maximiliano Tiberi LU: 83600
 * Sebastian Larrieu LU: 94056
 */
package grafica;

import javax.swing.Icon;
import javax.swing.ImageIcon;

@SuppressWarnings("serial")
public class MarvelGrafico extends RepresentacionGrafica
{
	//constructor
	public MarvelGrafico()
	{
		super();
	}
	
	//metodos encargados de cargar las imagenes de los diferentes personajes del juego.
	public void cargarIronMan()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/ironman/ironman.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/ironman/ironman-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarVenom()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/venom/venom.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/venom/venom-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarSpiderMan()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/spiderman/spiderman.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/spiderman/spiderman-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarThor()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/thor/thor.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/thor/thor-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarHulk()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/hulk/hulk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/marvels/hulk/hulk-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
}
